
// <copyright file="DynamicCopyHelperTests.cs" company="Subhadra Software Solutions">
//   
// </copyright>
// <summary>
//   Class DynamicCopyHelperTests.
// </summary>

namespace SubhadraSolutions.Sharp.Utils.Tests.Reflection
{
    using Microsoft.VisualStudio.TestTools.UnitTesting;

    using SubhadraSolutions.Sharp.Utils.Reflection;
    using SubhadraSolutions.Sharp.Utils.Tests.DummyClasses;

    /// <summary>
    ///     Class DynamicCopyHelperTests.
    /// </summary>
    [TestClass]
    public class DynamicCopyHelperTests
    {
        #region Public Methods and Operators

        /// <summary>
        ///     Tests this instance.
        /// </summary>
        [TestMethod]
        public void Test()
        {
            Employee e1 = Employee.BuildDummyEmployee();
            var e2 = new Employee();
            DynamicCopyHelper<Employee, Employee>.Copy(e1, e2);
            Assert.IsTrue(e1.Equals(e2));
        }

        #endregion Public Methods and Operators
    }
}
